package io.renren.service;

import io.renren.entity.MemberEntity;
import io.renren.form.PhoneCodeForm;
import io.renren.form.RegisterForm;

import java.util.Map;

import com.baomidou.mybatisplus.service.IService;

/**
 * 会员表
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-04-14 14:11:20
 */
public interface MemberService extends IService<MemberEntity> {

	/**
	 * 登录
	 * 
	 * @param member
	 * @return
	 */
	public Map<String, Object> login(MemberEntity member);

	/**
	 * 用户注册
	 */
	void save(RegisterForm form);

	/**
	 * 更新上传的图片
	 * 
	 * @param id
	 */
	void updateImage(Long id, int type, String url);

	/**
	 * 绑定手机
	 * 
	 * @param member
	 * @param form
	 */
	void bindMobile(MemberEntity member, PhoneCodeForm form);
}
